myApp.controller("ItemController",["$scope","$stateParams","ItemService",function($scope,$stateParams,ItemService){
	
 $scope.itemid = $stateParams.itemid;

 var promise=ItemService.get_area();
 promise.then(function(data){
	 console.log(data);
	 $scope.areas=data.data;
	 console.log($scope.areas);
 })
	
}])